package com.cms.model;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.persistence.Lob;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class Page 
{
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    String title;

    @Persistent
    String menuTitle;
    
    @Persistent
    Integer menuPosition;
	
    @Persistent
    @Lob
	String content;

    public Page(String title, String menuTitle, String content) 
    {
    	this.title = title;
    	this.menuTitle = menuTitle;
    	this.content = content;
    }
    
    public Key getKey() {
        return key;
    }

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getMenuPosition() {
		return menuPosition;
	}

	public void setMenuPosition(Integer menuPosition) {
		this.menuPosition = menuPosition;
	}

	public String getMenuTitle() {
		return menuTitle;
	}

	public void setMenuTitle(String menuTitle) {
		this.menuTitle = menuTitle;
	}
	
	
}
